﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(NewsRead))]
    [ProtoContract]
    public class NewsReadDto
    {
        [ProtoMember(1)]
        public int id { get; set; }


        [ProtoMember(2)]
        public int news_id { get; set; }


        [ProtoMember(3)]
        public int user_id { get; set; }


        [ProtoMember(4)]
        public String user_name { get; set; }


        [ProtoMember(5)]
        public DateTime add_time { get; set; }



        [ProtoMember(6)]
        public Decimal val { get; set; }


        [ProtoMember(7)]
        public String remark { get; set; }
    }
}
